package _07抽象类应用_加油站收银系统;

public abstract class Card {
    private String id;
    private Double balance;

    public Card() {
    }

    public Card(String id, Double balance) {
        this.id = id;
        this.balance = balance;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public abstract void pay(Double money);
}
